package com.jia.member.feign.coupon;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "gulimall-coupon", path = "/coupon", fallback = CouponFeignClientFallback.class)
public interface CouponFeignClient {

    @GetMapping("/list")
    public abstract List<Coupon> list();

}
